//
//  HDBankLittleView.swift
//  HuaDaoPeifu
//
//  Created by liangyuanliangyuan on 16/4/19.
//  Copyright © 2016年 paiyipai. All rights reserved.
//

import UIKit

class HDBankLittleView: UIView {

    var bankAtLeft:UILabel?
    var bankAtRight:UILabel?
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        bankAtLeft = UILabel()
        bankAtLeft?.font = UIFont.systemFont(ofSize: 15)
        bankAtLeft?.textColor = UIColor(hex: 0xffffff)
        self.addSubview(bankAtLeft!)
        bankAtLeft?.snp.makeConstraints({ (make) in
            make.left.equalTo(10)
            make.width.equalTo(70)
            make.top.equalTo(0)
            make.height.equalTo(15)
        })
        
        //TODO:这里的文字不固定，到时候写一个文字高度自适应的宏定义
        bankAtRight = UILabel()
        bankAtRight?.font = UIFont.systemFont(ofSize: 15)
        bankAtRight?.textColor = UIColor(hex: 0xffffff)
        bankAtRight?.numberOfLines = 0
        
        self.addSubview(bankAtRight!)
        bankAtRight?.snp.makeConstraints({ (make) in
            make.left.equalTo(bankAtLeft!.snp.right).offset(17)
            make.right.equalTo(-10)
            make.top.equalTo(0)
            make.bottom.equalTo(0)
        })
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

}
